<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<include file='Common:head'/>
<body>

<div class="rightinfo">
  <table class="tablelist">
    <thead>
      <tr>
        <th>ID</th>
        <th>姓名</th>
        <th>手机</th>
        <th>QQ</th>
        <th>邮箱</th>
        <th>内容</th>
        <th>时间</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <foreach name="list" item="v">
        <tr>
          <td>{$v['id']}</td>
          <td>{$v['name']|mb_substr=###,0,30,'utf-8'|htmlspecialchars}</td>
          <td>{$v['phone']}</td>
          <td>{$v['qq']}</td>
          <td>{$v['email']}</td>
          <td>{$v['content']}</td>
          <td>{$v['time']|date='Y-m-d H:i',###}</td>
          <td >
          <a href="{:U('Message/edit',array('id' => $v['id']))}" class="tablelink" <if condition="$v['is'] == 0">style="color:red;"</if>>查看</a>&nbsp;&nbsp;|&nbsp;&nbsp;
          <a href="{:U('Message/del',array('id' => $v['id']))}">删除</a>

          </a>
          </td>
        </tr>
      </foreach>
    </tbody>
  </table>
  <div class="meneame">
    <div class="current"></div>
    {$page} 
  </div>
</div>

</body>
</html>
